home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / Make / source / Makefile.DOS < prev    next >
Encoding:
Makefile  |  1997-09-19  |  17.3 KB  |  484 lines

  1. # -*-Makefile-*- template for DJGPP
  2. # Makefile.in generated automatically by automake 1.2 from Makefile.am
  3.  
  4. # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
  5. # This Makefile.DOS is free software; the Free Software Foundation
  6. # gives unlimited permission to copy, distribute and modify it.
  7.  
  8. # -*-Makefile-*-, or close enough
  9.  
  10.  
  11. SHELL = /bin/sh
  12.  
  13. srcdir = .
  14. VPATH = $(srcdir)
  15. # $DJDIR is defined automatically by DJGPP to point
  16. # to the root of the DJGPP installation tree.
  17. prefix = ${DJDIR}
  18. exec_prefix = ${prefix}
  19.  
  20. bindir = ${exec_prefix}/bin
  21. datadir = ${prefix}/share
  22. libdir = ${prefix}/lib
  23. infodir = ${prefix}/info
  24. # DJGPP doesn't have separate man tree, use info instead.
  25. mandir = ${prefix}/info
  26. includedir = ${prefix}/include
  27. oldincludedir = c:/djgpp/include
  28.  
  29. pkgdatadir = $(datadir)/make
  30. pkglibdir = $(libdir)/make
  31. pkgincludedir = $(includedir)/make
  32.  
  33. INSTALL = ${bindir}/ginstall -c
  34. INSTALL_PROGRAM = ${bindir}/ginstall -c
  35. INSTALL_DATA = ${bindir}/ginstall -c -m 644
  36. INSTALL_SCRIPT = ${bindir}/ginstall -c
  37. transform = s,x,x,
  38.  
  39. # This will fail even if they don't have a Unix-like shell (stock DOS
  40. # shell doesn't know about `false').  The only difference is that they
  41. # get "Error -1" instead of "Error 1".
  42. EXIT_FAIL = false
  43.  
  44. NORMAL_INSTALL = true
  45. PRE_INSTALL = true
  46. POST_INSTALL = true
  47. NORMAL_UNINSTALL = true
  48. PRE_UNINSTALL = true
  49. POST_UNINSTALL = true
  50. AR = ar
  51. CC = gcc
  52. CPP = gcc -E
  53. LIBOBJS =
  54. MAKEINFO = ${bindir}/makeinfo
  55. PACKAGE = make
  56. RANLIB = ranlib
  57. REMOTE = stub
  58. VERSION = 3.76.1
  59.  
  60. AUTOMAKE_OPTIONS = 1.2
  61.  
  62. bin_PROGRAMS =    make
  63.  
  64. make_SOURCES =    main.c commands.c job.c dir.c file.c misc.c read.c remake.c rule.c implicit.c default.c variable.c expand.c function.c vpath.c version.c ar.c arscan.c commands.h dep.h filedef.h job.h make.h rule.h variable.h signame.c signame.h getopt.c getopt1.c getopt.h remote-$(REMOTE).c
  65. # This should include the glob/ prefix
  66. libglob_a_SOURCES =    glob/fnmatch.c glob/glob.c glob/fnmatch.h glob/glob.h
  67. make_LDADD =      glob/libglob.a
  68.  
  69. info_TEXINFOS =    make.texinfo
  70.  
  71. INCLUDES =    -I$(srcdir)/glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/include\"
  72.  
  73. BUILT_SOURCES =    README build.sh.in
  74.  
  75. EXTRA_DIST =     make.man $(BUILT_SOURCES) remote-cstms.c  make-stds.texi texinfo.tex SCOPTIONS SMakefile  Makefile.ami README.Amiga config.ami amiga.c amiga.h  NMakefile README.DOS configh.dos configure.bat makefile.com  README.W32 build_w32.bat config.h.W32 subproc.bat make.lnk  config.h-vms makefile.vms readme.vms vmsdir.h vmsfunctions.c  vmsify.c
  76.  
  77. SUBDIRS =    glob
  78. mkinstalldirs = ${bindir}/gmkdir -p
  79. CONFIG_HEADER = config.h
  80. CONFIG_CLEAN_FILES =  build.sh
  81. PROGRAMS =  $(bin_PROGRAMS)
  82.  
  83.  
  84. DEFS =  -I. -I$(srcdir) -I.
  85. CPPFLAGS = -DHAVE_CONFIG_H
  86. LDFLAGS =
  87. LIBS =
  88. make_OBJECTS =  main.o commands.o job.o dir.o file.o misc.o read.o remake.o rule.o implicit.o default.o variable.o expand.o function.o vpath.o version.o ar.o arscan.o signame.o getopt.o getopt1.o remote-$(REMOTE).o
  89. make_DEPENDENCIES =    glob/libglob.a
  90. make_LDFLAGS =
  91. libglob_a_LIBADD =
  92. libglob_a_OBJECTS =  fnmatch.o glob.o
  93. noinst_LIBRARIES =    glob/libglob.a
  94. CFLAGS = -O2 -g
  95. COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
  96. LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
  97. TEXI2DVI = texi2dvi
  98. TEXINFO_TEX = $(srcdir)/texinfo.tex
  99. INFO_DEPS = make.info
  100. DVIS = make.dvi
  101. TEXINFOS = make.texinfo
  102. DIST_COMMON =  README AUTHORS COPYING ChangeLog INSTALL Makefile.am  Makefile.in NEWS acconfig.h aclocal.m4 alloca.c build.sh.in config.h.in  configure configure.in getloadavg.c install-sh missing mkinstalldirs  stamp-h.in texinfo.tex
  103.  
  104.  
  105. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  106.  
  107. TAR = gtar
  108. GZIP = --best
  109. SOURCES = $(make_SOURCES)
  110. OBJECTS = $(make_OBJECTS)
  111. HEADERS = $(wildcard $(srcdir)/*.h)
  112.  
  113. default: all
  114.  
  115. .SUFFIXES:
  116. .SUFFIXES: .c .dvi .info .o .ps .texi .texinfo
  117.  
  118. distclean-hdr:
  119.     rm -f config.h
  120.  
  121. maintainer-clean-hdr:
  122.  
  123. mostlyclean-binPROGRAMS:
  124.  
  125. clean-binPROGRAMS:
  126.     test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
  127.  
  128. distclean-binPROGRAMS:
  129.  
  130. maintainer-clean-binPROGRAMS:
  131.  
  132. install-binPROGRAMS: $(bin_PROGRAMS)
  133.     @$(NORMAL_INSTALL)
  134.     $(mkinstalldirs) $(bindir)
  135.     @list='$(bin_PROGRAMS)'; for p in $$list; do    if test -f $$p; then      echo "  $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p | sed '$(transform)'`";       $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p | sed '$(transform)'`;    else :; fi;  done
  136.  
  137. uninstall-binPROGRAMS:
  138.     $(NORMAL_UNINSTALL)
  139.     list='$(bin_PROGRAMS)'; for p in $$list; do    rm -f $(bindir)/`echo $$p|sed '$(transform)'`;  done
  140.  
  141. .c.o:
  142.     $(COMPILE) -c $<
  143.  
  144. clean-noinstLIBRARIES:
  145.     test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
  146.  
  147. mostlyclean-compile:
  148.     rm -f *.o *.exe make.new core
  149.  
  150. clean-compile:
  151.  
  152. distclean-compile:
  153.     rm -f *.tab.c
  154.  
  155. maintainer-clean-compile:
  156.  
  157. make: $(make_OBJECTS) $(make_DEPENDENCIES)
  158.     @command.com /c if exist make del make
  159.     @command.com /c if exist make.exe del make.exe
  160.     $(LINK) $(make_LDFLAGS) $(make_OBJECTS) $(make_LDADD) $(LIBS)
  161.  
  162. make.info: make.texinfo
  163. make.dvi: make.texinfo
  164.  
  165.  
  166. DVIPS = dvips
  167.  
  168. .texi.info:
  169.     $(MAKEINFO) $(srcdir)/$< -o ./$@
  170.  
  171. .texi.dvi:
  172.     TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
  173.  
  174. .texi:
  175.     $(MAKEINFO) $(srcdir)/$< -o ./$@
  176.  
  177. .texinfo.info:
  178.     $(MAKEINFO) $(srcdir)/$< -o ./$@
  179.  
  180. .texinfo:
  181.     $(MAKEINFO) $(srcdir)/$< -o ./$@
  182.  
  183. .texinfo.dvi:
  184.     TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
  185.  
  186. .dvi.ps:
  187.     $(DVIPS) $< -o $@
  188.  
  189. install-info-am: $(INFO_DEPS)
  190.     @$(NORMAL_INSTALL)
  191.     $(mkinstalldirs) $(infodir)
  192.     @for file in $(INFO_DEPS) make.i; do    d=$(srcdir);    for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]`; do      if test -f $$d/$$ifile; then        echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; else : ; fi;    done;  done
  193.     @$(POST_INSTALL)
  194.     @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then    for file in $(INFO_DEPS); do      echo " install-info --info-dir=$(infodir) $(infodir)/$$file";     install-info --info-dir=$(infodir) $(infodir)/$$file || :;   done;  else : ; fi
  195.  
  196. uninstall-info:
  197.     $(PRE_UNINSTALL)
  198.     @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then    ii=yes;  else ii=; fi;  for file in $(INFO_DEPS); do    test -z $ii || install-info --info-dir=$(infodir) --remove $$file;  done
  199.     $(NORMAL_UNINSTALL)
  200.     for file in $(INFO_DEPS) make.i; do    (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]);  done
  201.  
  202. dist-info: $(INFO_DEPS)
  203.     for base in $(INFO_DEPS); do    d=$(srcdir);    for file in `cd $$d && eval echo $$base*`; do      test -f $(distdir)/$$file      || ln $$d/$$file $(distdir)/$$file 2> /dev/null      || cp -p $$d/$$file $(distdir)/$$file;    done;  done
  204.  
  205. mostlyclean-aminfo:
  206.     rm -f make.aux make.cp make.cps make.dvi make.fn make.fns make.ky    make.log make.pg make.toc make.tp make.tps make.vr make.vrs    make.op make.tr make.cv
  207.  
  208. clean-aminfo:
  209.  
  210. distclean-aminfo:
  211.  
  212. maintainer-clean-aminfo:
  213.     for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
  214.  
  215. # Assume that the only thing to do in glob is to build libglob.a,
  216. # but do a sanity check: if $SUBDIRS will ever have more than
  217. # a single directory, yell bloody murder.
  218. all-recursive:
  219. ifeq ($(words $(SUBDIRS)), 1)
  220.     @command.com /c if not exist glob\\nul md glob
  221.     @echo Making all in $(SUBDIRS)
  222.     $(MAKE) -C $(SUBDIRS) -f ../Makefile INCLUDES='-I$(srcdir) -I$(srcdir)/glob' DEFS='-I.. -I$(srcdir)' VPATH=$(srcdir)/glob libglob.a
  223. else
  224.     @echo FATAL: There is more than one directory in "($(SUBDIRS))"
  225.     @$(EXIT_FAIL)
  226. endif
  227.  
  228. $(SUBDIRS):
  229.     command.com /c md $@
  230.  
  231. libglob.a: $(libglob_a_OBJECTS)
  232.     command.com /c if exist libglob.a del libglob.a
  233.     $(AR) cru libglob.a $(libglob_a_OBJECTS) $(libglob_a_LIBADD)
  234.     $(RANLIB) libglob.a
  235.  
  236. mostlyclean-recursive clean-recursive distclean-recursive  maintainer-clean-recursive:
  237. ifeq ($(words $(SUBDIRS)), 1)
  238.     @echo Making $(shell echo $@ | sed s/-recursive//) in $(SUBDIRS)
  239.     $(MAKE) -C $(SUBDIRS) -f ../Makefile $(shell echo $@ | sed s/-recursive//)-am
  240. else
  241.     @echo FATAL: There is more than one directory in "($(SUBDIRS))"
  242.     @$(EXIT_FAIL)
  243. endif
  244.  
  245. tags-in-glob: $(libglob_a_SOURCES)
  246.     etags $(addprefix $(srcdir)/,$^) -o ./glob/TAGS
  247.  
  248. tags-recursive:
  249. ifeq ($(words $(SUBDIRS)), 1)
  250.     $(MAKE) tags-in-glob
  251. else
  252.     @echo FATAL: There is more than one directory in "($(SUBDIRS))"
  253.     @$(EXIT_FAIL)
  254. endif
  255.  
  256. tags: TAGS
  257.  
  258. ID: $(HEADERS) $(SOURCES)
  259.     mkid $(srcdir)/$(SOURCES) $(srcdir)/$(libglob_a_SOURCES) ./config.h $(HEADERS)
  260.  
  261. TAGS: tags-recursive $(HEADERS) $(srcdir)/$(SOURCES) config.h $(TAGS_DEPENDENCIES)
  262.     etags -i ./glob/TAGS $(ETAGS_ARGS) $(srcdir)/$(SOURCES) ./config.h $(HEADERS)
  263.  
  264. mostlyclean-tags:
  265.  
  266. clean-tags:
  267.  
  268. distclean-tags:
  269.     rm -f TAGS ID
  270.  
  271. maintainer-clean-tags:
  272.  
  273. distdir = $(PACKAGE)-$(VERSION)
  274. top_distdir = $(distdir)
  275.  
  276. # This target untars the dist file and tries a VPATH configuration.  Then
  277. # it guarantees that the distribution is self-contained by making another
  278. # tarfile.
  279. distcheck: dist
  280.     rm -rf $(distdir)
  281.     GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
  282.     mkdir $(distdir)/=build
  283.     mkdir $(distdir)/=inst
  284.     dc_install_base=`cd $(distdir)/=inst && pwd`;  cd $(distdir)/=build    && ../configure --srcdir=.. --prefix=$$dc_install_base    && $(MAKE)    && $(MAKE) dvi    && $(MAKE) check    && $(MAKE) install    && $(MAKE) installcheck    && $(MAKE) dist
  285.     rm -rf $(distdir)
  286.     @echo "========================";  echo "$(distdir).tar.gz is ready for distribution";  echo "========================"
  287. dist: distdir
  288.     -chmod -R a+r $(distdir)
  289.     GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
  290.     rm -rf $(distdir)
  291. dist-all: distdir
  292.     -chmod -R a+r $(distdir)
  293.     GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
  294.     rm -rf $(distdir)
  295. distdir: $(DISTFILES)
  296.     rm -rf $(distdir)
  297.     mkdir $(distdir)
  298.     -chmod 777 $(distdir)
  299.     @for file in $(DISTFILES); do d=$(srcdir); test -f $(distdir)/$$file || ln $$d/$$file $(distdir)/$$file 2> /dev/null || cp -p $$d/$$file $(distdir)/$$file; done; for subdir in $(SUBDIRS); do test -d $(distdir)/$$subdir || mkdir $(distdir)/$$subdir || exit 1; chmod 777 $(distdir)/$$subdir; (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir)/$$subdir distdir=../$(distdir)/$$subdir distdir) || exit 1; done
  300.     $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
  301.     $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
  302. alloca.o alloca.lo: alloca.c config.h
  303. ar.o ar.lo: ar.c make.h config.h filedef.h dep.h glob/fnmatch.h
  304. arscan.o arscan.lo: arscan.c make.h config.h
  305. commands.o commands.lo: commands.c make.h config.h dep.h filedef.h  variable.h job.h commands.h
  306. default.o default.lo: default.c make.h config.h rule.h dep.h filedef.h  job.h commands.h variable.h
  307. dir.o dir.lo: dir.c make.h config.h glob/glob.h
  308. expand.o expand.lo: expand.c make.h config.h filedef.h job.h commands.h  variable.h
  309. file.o file.lo: file.c make.h config.h dep.h filedef.h job.h commands.h  variable.h
  310. function.o function.lo: function.c make.h config.h filedef.h variable.h  dep.h job.h commands.h
  311. getloadavg.o getloadavg.lo: getloadavg.c config.h
  312. getopt.o getopt.lo: getopt.c config.h getopt.h
  313. getopt1.o getopt1.lo: getopt1.c config.h getopt.h
  314. implicit.o implicit.lo: implicit.c make.h config.h rule.h dep.h  filedef.h
  315. job.o job.lo: job.c make.h config.h job.h filedef.h commands.h  variable.h
  316. main.o main.lo: main.c make.h config.h dep.h filedef.h variable.h job.h  commands.h getopt.h
  317. misc.o misc.lo: misc.c make.h config.h dep.h
  318. read.o read.lo: read.c make.h config.h dep.h filedef.h job.h commands.h  variable.h glob/glob.h
  319. remake.o remake.lo: remake.c make.h config.h filedef.h job.h commands.h  dep.h
  320. remote-stub.o remote-stub.lo: remote-stub.c make.h config.h filedef.h  job.h commands.h
  321. rule.o rule.lo: rule.c make.h config.h dep.h filedef.h job.h commands.h  variable.h rule.h
  322. signame.o signame.lo: signame.c config.h signame.h
  323. variable.o variable.lo: variable.c make.h config.h dep.h filedef.h job.h  commands.h variable.h
  324. version.o version.lo: version.c config.h
  325. vpath.o vpath.lo: vpath.c make.h config.h filedef.h variable.h
  326. fnmatch.o fnmatch.lo: fnmatch.c fnmatch.h ../config.h
  327. glob.o glob.lo: glob.c fnmatch.h glob.h ../config.h
  328.  
  329. info: $(INFO_DEPS) info-recursive
  330. dvi: $(DVIS) dvi-recursive
  331. check: all-am
  332.     $(MAKE) check-recursive check-local
  333. installcheck: installcheck-recursive
  334. all-recursive-am: config.h
  335.     $(MAKE) all-recursive
  336.  
  337. all-am: Makefile $(INFO_DEPS) $(PROGRAMS) config.h
  338.  
  339. install-exec-am: install-binPROGRAMS
  340.  
  341. install-data-am: install-info-am
  342.  
  343. uninstall-am: uninstall-binPROGRAMS uninstall-info
  344.  
  345. install-exec: install-exec-recursive install-exec-am
  346.     @$(NORMAL_INSTALL)
  347.  
  348. install-data: install-data-recursive install-data-am
  349.     @$(NORMAL_INSTALL)
  350.  
  351. install: install-recursive install-exec-am install-data-am
  352.     @:
  353.  
  354. uninstall: uninstall-recursive uninstall-am
  355.  
  356. all: all-recursive-am all-am
  357.  
  358. install-strip:
  359.     $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
  360. installdirs: installdirs-recursive
  361.     $(mkinstalldirs)  $(bindir) $(infodir)
  362.  
  363.  
  364. mostlyclean-generic:
  365.     test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
  366.  
  367. clean-generic:
  368.     test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  369.  
  370. distclean-generic:
  371.     rm -f Makefile $(DISTCLEANFILES)
  372.     rm -f config.cache config.log stamp-h stamp-h[0-9]*
  373.     test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  374.  
  375. maintainer-clean-generic:
  376.     test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
  377.     test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
  378. mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS  mostlyclean-compile mostlyclean-aminfo mostlyclean-tags  mostlyclean-generic
  379.  
  380. clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-aminfo  clean-tags clean-generic mostlyclean-am
  381.  
  382. distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile  distclean-aminfo distclean-tags distclean-generic  clean-am
  383.  
  384. maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS  maintainer-clean-compile maintainer-clean-aminfo  maintainer-clean-tags maintainer-clean-generic  distclean-am
  385.  
  386. mostlyclean:  mostlyclean-recursive mostlyclean-am
  387.  
  388. clean: clean-noinstLIBRARIES clean-recursive clean-am
  389.  
  390. distclean:  distclean-recursive distclean-am
  391.     rm -f config.status
  392.  
  393. maintainer-clean:  maintainer-clean-recursive maintainer-clean-am
  394.     @echo "This command is intended for maintainers to use;"
  395.     @echo "it deletes files that may require special tools to rebuild."
  396.     rm -f config.status
  397.  
  398. .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
  399. maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
  400. clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
  401. install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
  402. maintainer-clean-compile install-info-am uninstall-info \
  403. mostlyclean-aminfo distclean-aminfo clean-aminfo \
  404. maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
  405. install-exec-recursive uninstall-exec-recursive installdirs-recursive \
  406. uninstalldirs-recursive all-recursive check-recursive \
  407. installcheck-recursive info-recursive dvi-recursive \
  408. mostlyclean-recursive distclean-recursive clean-recursive \
  409. maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
  410. distclean-tags clean-tags maintainer-clean-tags distdir \
  411. mostlyclean-depend distclean-depend clean-depend \
  412. maintainer-clean-depend info dvi check-local installcheck \
  413. all-recursive-am all-am install-exec-am install-data-am uninstall-am \
  414. install-exec install-data install uninstall all installdirs \
  415. mostlyclean-generic distclean-generic clean-generic \
  416. maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  417.  
  418.  
  419. # --------------- Local DIST Section
  420.  
  421. # Install the w32 subdirectory
  422. #
  423. dist-hook:
  424.     (cd $(srcdir); \
  425.      w32=`find w32 -follow \( -name CVS -prune \) -o -type f -print`; \
  426.      tar chf - $$w32) \
  427.     | (cd $(distdir); tar xfBp -)
  428.  
  429. # --------------- Local CHECK Section
  430.  
  431. check-local: check-loadavg check-regression
  432. .PHONY: check-loadavg check-regression
  433.  
  434. # > check-loadavg
  435. #
  436. loadavg: loadavg.c config.h
  437.     @rm -f loadavg
  438.     $(LINK) -DTEST $(make_LDFLAGS) loadavg.c $(LIBS)
  439. # We copy getloadavg.c into a different file rather than compiling it
  440. # directly because some compilers clobber getloadavg.o in the process.
  441. loadavg.c: getloadavg.c
  442.     ln $(srcdir)/getloadavg.c loadavg.c || \
  443.     cp $(srcdir)/getloadavg.c loadavg.c
  444. check-loadavg: loadavg
  445.     @echo The system uptime program believes the load average to be:
  446.     -uptime
  447.     @echo The GNU load average checking code believes:
  448.     -./loadavg
  449.  
  450. # > check-regression
  451. #
  452. # Look for the make test suite, and run it if found.  Look in MAKE_TEST if
  453. # specified, or else in the srcdir or the distdir, their parents, and _their_
  454. # parents.
  455. #
  456. check-regression:
  457.     here=`pwd`; testdir=""; \
  458.       case "$(MAKE_TEST)" in "") \
  459.         for d1 in $$here $(srcdir); do \
  460.           for d2 in ../.. .. .; do \
  461.         all=`echo $$d1/$$d2/make-test-[0-9]*/run_make_tests`; \
  462.         case "$$all" in \
  463.           "$$d1/$$d2/make-test-[0-9]*/run_make_tests") : ;; \
  464.           *) try=`for x in $$all; do echo $$x; done | sort | tail -1`;\
  465.              testdir=`dirname $$try` ;; esac; \
  466.             done; done ;; \
  467.         *) testdir="$(MAKE_TEST)" ;; \
  468.       esac; \
  469.       case "$$testdir" in \
  470.         "") echo "Couldn't find make-test-* test suite."; exit 0;; \
  471.       esac; \
  472.       echo "cd $$testdir && ./run_make_tests -make_path $$here/make"; \
  473.       cd $$testdir && ./run_make_tests -make_path $$here/make
  474.  
  475. # --------------- Maintainer's Section
  476.  
  477. # Note this requires GNU make.  Not to worry, since it will only be included
  478. # in the Makefile if we're in the maintainer's environment.
  479. #include $(srcdir)/maintMakefile
  480.  
  481. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  482. # Otherwise a system limit (for SysV at least) may be exceeded.
  483. .NOEXPORT:
  484.